package com.kgc.cgprovider.service;

import com.kgc.basic.util.ResponseMsg;

import java.util.Map;

public interface PurchaseInvoiceService {

    ResponseMsg selectPurchaseInvoiceByPage(Map<String, Object> map);

    ResponseMsg insertPurchaseInvoice(Map<String, Object> map);

    ResponseMsg selectPurchaseInstoreByPid(int supplierId);

    ResponseMsg selectPurchaseInstoreDetailByInstoreCode(String instoreCode);

    //根据单据编号查询采购发票(回显)
    ResponseMsg selectPurchaseInvoiceByCode(String code);

    //根据单据编号查询采购发票(回显)
    ResponseMsg selectPurchaseInvoiceDetailByCode(String invoiceCode);

    ResponseMsg deletePurchaseInvoice(int id);

    //根据单据编号删除主表数据
    ResponseMsg deletePurchaseInvoiceByCode(String code);

    //根据关联的单据编号删除明细表数据
    ResponseMsg deletePurchaseInvoiceDetailByCode(String code);
}
